<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

get_header();
?>
	<div class="cDivSingleContentWrapperBg">
		<div class="cDivSingleContentWrapper">
			<?php if (have_posts()) : the_post()?>
			<div class="cDivContentTitleRedBg">
				<div class="cDivContentTitle">
					<?php echo get_the_title(); ?>
				</div>
			</div>

			<div class="cDivPostContent cDivServiceContent">
				<div class="cDivItemPrice">
					<span>$</span><?php echo get_field('aiServicePrice'); ?>					
				</div>
				<?php
					$sOneLineIntro = get_field('aiOneLineIntro');
					if ($sOneLineIntro != '') {
						$aiOneLineIntro = explode('<br />', $sOneLineIntro);
						foreach ($aiOneLineIntro as $key => $sValue) {
							if ($sValue != '') { ?>
								<div class="cDivServiceContentPoints <?php echo (($key % 2) == 0) ? 'cRowOdd' : 'cRowEven';?>">
									<?php echo $sValue; ?>
								</div>
						<?php
							}
						}
					}
				?>
				
				<div class="cDivServiceContentRow cRowEven">
					<?php the_content(); ?>
				</div>
			</div> <!-- cDivPostContent -->

			<div class="cDivFormService">
				
			</div>

			<div class="cClearBoth"></div>
			<div style="height: 10px"></div>

			<?php endif; ?>
		</div>

	</div>

<?php
get_footer();
?>
